package com.qianguo.buyer.widget.dropdownmenu;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by guxun on 16/3/1.
 */
public class BaseMenuFilterItem implements Parcelable {

    protected int    iCodeID;
    protected String sName;

    public int getiCodeID() {
        return iCodeID;
    }

    public void setiCodeID(int iCodeID) {
        this.iCodeID = iCodeID;
    }

    public String getsName() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName = sName;
    }

    public BaseMenuFilterItem() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.iCodeID);
        dest.writeString(this.sName);
    }

    protected BaseMenuFilterItem(Parcel in) {
        this.iCodeID = in.readInt();
        this.sName = in.readString();
    }

    public static final Creator<BaseMenuFilterItem> CREATOR = new Creator<BaseMenuFilterItem>() {
        public BaseMenuFilterItem createFromParcel(Parcel source) {
            return new BaseMenuFilterItem(source);
        }

        public BaseMenuFilterItem[] newArray(int size) {
            return new BaseMenuFilterItem[size];
        }
    };

    @Override
    public String toString() {
        return "BaseFilterItem{" +
                "iCodeID=" + iCodeID +
                ", sName='" + sName + '\'' +
                '}';
    }
}
